from webdriver_manager.core import driver

from BlogAutoTest.tests import BlogLoginTest, BlogListTest, BlogDetailTest, BlogEditTest

if __name__ == "__main__":
    BlogLoginTest.BlogLogin().LoginFailTest()
    BlogLoginTest.BlogLogin().LoginSucTest()
    #测试完登陆界面后进入首页进行首页测试
    BlogListTest.BlogList().BlogListLogin()
    #未登录状态下的首页测试
    BlogListTest.BlogList().BlogListUnlogin()
    #详情页测试
    BlogDetailTest.BlogDetail().BlogDetail()
    #编辑页测试
    BlogEditTest.BlogEdit().BlogEdit()
    print("博客系统测试完成")
    #driver.quite()